
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<div class="modal" id="workflowRecordDiv" tabindex="-1" role="dialog" aria-hidden="true" style="width: auto;">

	<div class="modal-dialog modal-lg" role="document" style="max-width: 1000px;">

		<div class="modal-content animated bounceInRight">

			<div class="modal-header">
				<h4 class="modal-title">工作流审批记录</h4>
				<button type="button" class="close" data-dismiss="modal"
					aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
			</div>

			<div class="modal-body" style="padding-bottom: 20px; padding-top: 20px;">

				<div class="table-responsive">
					
					<table class="table table-striped table-hover table-bordered border-top">
						<thead>
							<tr>
								<th width="5%">序号</th>
								<th>审批节点</th>
								<th>审批人</th>
								<th>审批人部门</th>
								<th>审批人岗位</th>
								<th>审批结果</th>
								<th>审批意见</th>
								<th>审批日期</th>
							</tr>
						</thead>
						<tbody>

							<c:forEach items="${requestScope.cuxWorkflowRecordList}" var="data" varStatus="status">
								<tr>
									<td>${status.count}</td>
									<td>${data.taskName}</td>
									<td>${data.approvePersonName}</td>
									<td>${data.approvePersonDepartment}</td>
									<td>${data.approvePersonPosition}</td>
									<td style="font-size: 10px; text-align: center;">
										<c:choose>
										   <c:when test="${data.approveResult=='PASS'}">
										       <span class="label label-success">同意</span>
										   </c:when>
										   <c:when test="${data.approveResult=='NOPASS'}">
										       <span class="label label-danger">拒绝</span>
										   </c:when>
										</c:choose>
									</td>
									<td>${data.approveComment}</td>
									<td><fmt:formatDate value="${data.lastUpdatedDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
								</tr>
							</c:forEach>

						</tbody>
						<tfoot>
						</tfoot>
					</table>
				</div>

				<div class="form-group row m-b-none">
					<div class="col-sm-12 col-sm-offset-2 text-right">
						<button class="btn btn-white btn-lg" type="button" data-dismiss="modal">返回</button>
					</div>
				</div>

			</div>

		</div>

	</div>

</div>
